home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
program
/
kh_gdi.zip
/
GENERAL
/
STRDUP.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-24
|
222b
|
13 lines
#include <string.h>
#include "general\strdup.h"
char* str_dup(const char* s)
{
char* ret = NULL;
if(s != NULL)
{
ret = new char[strlen(s) + 1];
strcpy(ret, s);
}
return ret;
}